package cn.jy.map.domain;

import cn.jy.map.utils.MapUtils;

/**
 * 登记甘特图
 * 
 * @author Administrator
 *
 */
public class RegisterGtt {

	private String ID;
	private String SFZ;
	private String CARDID;
	private String GENDER;
	private int AGE;
	private String NAME;
	private String STARTTIME;
	private String ENDTIME;
	private String SMALLNO;
	private String BETWEENMINUTES;
	private String ISNEW;//是否是建档那一次的登记（也就是看是否是当天的新浆员）
	private String CREATEDATE;//建档时间
	
	private String isEnd;//是否已经完成采浆整个流程。
	
	

	public String getID() {
		return ID;
	}
	public void setID(String iD) {
		ID = iD;
	}
	public String getSFZ() {
		return SFZ;
	}
	public void setSFZ(String sFZ) {
		SFZ = sFZ;
	}
	public String getCARDID() {
		return CARDID;
	}
	public void setCARDID(String cARDID) {
		CARDID = cARDID;
	}
	public String getGENDER() {
		return GENDER;
	}
	public void setGENDER(String gENDER) {
		GENDER = gENDER;
	}
	public int getAGE() {
		return AGE;
	}
	public void setAGE(int aGE) {
		AGE = aGE;
	}
	public String getNAME() {
		return NAME;
	}
	public void setNAME(String nAME) {
		NAME = nAME;
	}
	public String getSTARTTIME() {
		return STARTTIME;
	}
	public void setSTARTTIME(String sTARTTIME) {
		STARTTIME = sTARTTIME;
	}
	public String getENDTIME() {
		
//		if(ENDTIME == null || "".equals(ENDTIME)){
//			ENDTIME = MapUtils.getNow();
//		}
//		
		return ENDTIME;
	}
	public void setENDTIME(String eNDTIME) {
		ENDTIME = eNDTIME;
	}
	public String getSMALLNO() {
		return SMALLNO;
	}
	public void setSMALLNO(String sMALLNO) {
		SMALLNO = sMALLNO;
	}
	public String getBETWEENMINUTES() {
		try {
			BETWEENMINUTES = MapUtils.betweenMinutes(STARTTIME, this.getENDTIME()) + "";
		} catch (Exception e) {
			e.printStackTrace();
		}
		return BETWEENMINUTES;
	}
	public void setBETWEENMINUTES(String bETWEENMINUTES) {
		BETWEENMINUTES = bETWEENMINUTES;
	}
	public String getISNEW() {
		return ISNEW;
	}
	public void setISNEW(String iSNEW) {
		ISNEW = iSNEW;
	}
	public String getCREATEDATE() {
		return CREATEDATE;
	}
	public void setCREATEDATE(String cREATEDATE) {
		CREATEDATE = cREATEDATE;
	}
	@Override
	public String toString() {
		return "RegisterGtt [ID=" + ID + ", SFZ=" + SFZ + ", CARDID=" + CARDID + ", GENDER=" + GENDER + ", AGE=" + AGE
				+ ", NAME=" + NAME + ", STARTTIME=" + STARTTIME + ", ENDTIME=" + ENDTIME + ", SMALLNO=" + SMALLNO
				+ ", BETWEENMINUTES=" + BETWEENMINUTES + ", ISNEW=" + ISNEW + ", CREATEDATE=" + CREATEDATE + "]";
	}
	public String getIsEnd() {
		return isEnd;
	}
	public void setIsEnd(String isEnd) {
		this.isEnd = isEnd;
	}

	
	
}
